<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="Robots" content="all" />
<meta name="Googlebot" content="all" />
<meta name="Author" content="内蒙古呼和浩特市第二中学网校" />
<meta name="Copyright" content="内蒙古呼和浩特市第二中学版权所有" />
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<link href="{CSS_PATH}public.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}category_common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{JS_PATH}jquery.min.js"></script>
<script type="text/javascript" src="{JS_PATH}jquery.sGallery.js"></script>
<script type="text/javascript" src="{JS_PATH}search_common.js"></script>
</head>
<body>
{template "content","header_common"}
<div id="page">
<div id="boardbox">
	<div class="crumb">
		<b>当前位置：</b>
		<a href="{siteurl($siteid)}">首页</a><span> > </span>{catpos($catid)} 分类
	</div><!-- css class crumb end -->
	<div class="bk"></div>
	
	<div class="toppage">
		<div class="leftside">
			<div class="col-auto channel-slide">
				{pc:content  action="lists" catid="$catid" order="listorder ASC" thumb="1" num="6"}
				<ul class="thumb">
					{loop $data $k $v}
						<li {if $n==1}class="on" style="margin:0"{/if}><a href="{$v[url]}"><img src="{thumb($v[thumb], 82, 50)}"  alt="{$v[title]}" width="82" height="50" /><div class="icon"></div></a></li>
					{/loop}
				</ul><!-- css class thumb end -->
				<div class="col-auto_img">
					<ul class="photo">
						{loop $data $k $v}
							<li><a href="{$v[url]}" title="{$v[title]}"><img src="{thumb($v[thumb], 450, 290)}" alt="{$v[title]}" /></a></li>
						{/loop}
						</ul>
						<div class="title">
						{loop $data $k $v}
						  <p  {if $n==1}style="display:block"{/if}><strong><a href="{$v[url]}" title="{$v[title]}" class="blue"{title_style($v[style])}>{str_cut($v[title], 36)}</a></strong><br />{str_cut(strip_tags($v[description]), 62)}</p>
						{/loop}
					  </div>
				</div><!-- css class col-auto_img end -->
				{/pc}
			</div><!-- css class col-auto channel-slide end -->
		</div><!-- css class leftside end -->
		
		<div class="rightside">
			<h3 class="maintitle">
				<span class="sp_r"></span>
				<span class="sp_l"></span>
				<span class="title">频道总排行</span>
			</h3><!-- css class maintitle end -->
			<span class="outbox">
				<span class="datalist">
					{pc:content action="hits" catid="$catid" num="7" order="views DESC" cache="3600"}
					{loop $data $v}
						{if $n==1}
						<span class="imgbox">
							<a href="{$v[url]}" target="_blank"{title_style($v[style])}>
							<img src="{thumb($v[thumb],135,110)}" alt="{$v[title]}" />
							</a>
						</span>
						<ul>
						{else}
							<li><a href="{$v[url]}" target="_blank"{title_style($v[style])}>{$v[title]}</a></li>
						{/if}
					{/loop}
					{if $data}</ul>{/if}
					{/pc}
				</span><!-- css class datalist end -->
				<b></b>
				<h3 class="secondtitle">
					<span class="title">频道本月排行</span>
				</h3>
				<span class="bluebg">
					{pc:content action="hits" catid="$catid" num="7" order="monthviews DESC" cache="3600"}
					{loop $data $v}
						{if $n==1}
						<span class="imgbox">
							<a href="{$v[url]}" target="_blank"{title_style($v[style])}>
							<img src="{thumb($v[thumb],135,110)}" alt="{$v[title]}" />
							</a>
						</span>
						<ul>
						{else}
							<li><a href="{$v[url]}" target="_blank"{title_style($v[style])}>{$v[title]}</a></li>
						{/if}
					{/loop}
					{if $data}</ul>{/if}
					{/pc}
				</span>
				<span class="clear">&nbsp;</span>
			</span><!-- css class outbox end -->
		</div><!-- css class rightside end -->
	</div><!-- css class toppage end -->	
	<div class="d_ad"><script language="javascript" src="{APP_PATH}index.php?m=poster&c=index&a=show_poster&id=15"></script></div>
	
	<div class="secondpage">
		<div class="tab">
			<h3>
				<span class="sp_r"></span>
				<span class="title_link">
					{loop subcat($catid) $v}
					{php if($v['type']!=0) continue;}
						<a id="ctitle_{$v[catid]}" href="{$v[url]}" target="_blank" title="{$v[catname]}" class="tabo{if $n>1}ff{else}n{/if}" onmouseover="toggle_show({$v[catid]},'ctitle_','cat_content_','tabon','taboff')">{$v[catname]}</a>
					{/loop}
				</span>
				<span class="sp_l"></span>
			</h3>
			<span class="outerbox">
				{php $j=1;}
				{loop subcat($catid) $v}
				{php if($v['type']!=0) continue;}
				<dl id="cat_content_{$v[catid]}" {if $j>1}style="display:none;"{/if}>					
					<dt>
						<span class="t_date">日期</span>
						<span class="t_class">科目</span>
						<span class="t_name">教师名</span>
						<span class="t_grade">年级</span>
						<span class="t_content">复习内容</span>
					</dt>
					{pc:content action="lists" catid="$v[catid]" moreinfo="1" num="5" order="id DESC"}
					{loop $data $r}
					<dd>
						<span class="date">{date('Y-m-d',$r[inputtime])}</span>
						<span class="class">{$r[classes]}</span>
						<span class="name">{$r[teacher]}</span>
						<span class="grade">{$r[grade]}</span>
						<span class="content">
							<a href="{$r[url]}" target="_blank"{title_style($r[style])}>{$r[title]}</a>
						</span>
					</dd>
					{/loop}
					{/pc}
				</dl>
				{$j++}
				{/loop}
			</span>
		</div>
	</div><!-- css class secondpage end -->
		
</div><!-- css id boardbox end -->

<script type="text/javascript">
function ChannelSlide(Name,Class){
	$(Name+' ul.photo li').sGallery({
		titleObj:Name+' div.title p',
		thumbObj:Name+' .thumb li',
		thumbNowClass:Class
	});
}
new ChannelSlide(".channel-slide","on",311,260);
function toggle_show(showid, title_prefix, content_prefix, showcls, hidecls)
{
	//取得同级元素
	var siblings =$('#' + title_prefix + showid).siblings();
	var siblings_len = siblings.length;
	for(i=0;i<siblings_len;i++)
	{
		var hide_id = siblings.eq(i).attr('id');
		var id_index = hide_id.lastIndexOf('_') + 1;
		var id_num = hide_id.substring(id_index);
		$('#' + title_prefix + id_num).attr('class', hidecls);
		$('#' + content_prefix + id_num).css('display', 'none');
	}
	//显示元素
	$('#' + title_prefix + showid).attr('class', showcls);
	$('#' + content_prefix + showid).css('display', 'block');
}
</script>

{template "content","footer_cat"}